package org.jeecg.modules.lab.notify.mapper;

import org.apache.ibatis.annotations.Param;
import org.jeecg.common.system.vo.LoginUser;
import org.jeecg.modules.lab.notify.entity.LabNotify;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.lab.notify.vo.LabNotifyPage;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description: 消息通知
 * @Author: jeecg-boot
 * @Date:   2023-11-08
 * @Version: V1.0
 */
@Repository
public interface LabNotifyMapper extends BaseMapper<LabNotify> {

    //查询本月哪些日子有任务消息
    List<String> queryMonth(String date,String userId);

    //按照天查询任务消息
    List<LabNotify> queryByMonth(String month,String userId);
    /**
     * 根据id查用户对象
     * @param uerId
     * @return
     */
    LoginUser byIdLogUser(String uerId);

    public  List<LabNotifyPage> listAppNotify(@Param("userId") String userId, @Param("userName") String userName, @Param("tId") String tId);
}
